home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / Toolbox / NoResDialog / NoResDialog • Read Me next >
Encoding:
Text File  |  1994-02-10  |  652 b   |  20 lines  |  [TEXT/MPS ]

  1. NoResDialog
  2.  
  3. OK, so despite all your planning, you still think you may need to
  4. create dialogs on the fly , without having any resource templates
  5. available for the DITL.
  6.  
  7. Pain in the butt.  The Dialog Manager was not designed for not using resources, so
  8. you'll be abusing a manager again to do so (hehehehe).
  9. But doable, and actually not that much of a pain once you have some basic information.
  10.  
  11. This small sample shows how, it creates a dialog with an OK button witha border
  12. around it all with in-memory data structures, no resources used.
  13.  
  14. Just look at the function NoResDialog(...), and you'll see.
  15.  
  16. Enjoy,
  17. C.K. Haun
  18. Apple Something or other
  19. 2/1994
  20.